/**
 * 柱状图相关配置
 *  */

const config = {
  arrive: {
    dispatchType: 'chartData/getYzGpYesterdayArrivalRank',
    title: '昨日到件量排名',
    xKey: 'hour',
    yKey: 'sum_num',
    tooltip: [
      'hour*sum_num',
      (hour, sum_num) => ({
        title: hour,
        name: '数量',
        value: sum_num,
      }),
    ],
  },
  brand_arrive: {
    dispatchType: 'chartData/getYzGpYesterdayBrandArrivalRank',
    title: '昨日到件品牌排名',
    xKey: 'brand',
    yKey: 'sum_num',
    tooltip: [
      'brand*sum_num',
      (brand, sum_num) => ({
        title: brand,
        name: '数量',
        value: sum_num,
      }),
    ],
  },
};

export default config;
